// FirstReducer
import 'package:flutter_demo/ui/redux/actions/FirstAction.dart';
import 'package:flutter_demo/ui/redux/states/FirstState.dart';

FirstState firstReducer(state, action) {
  switch (action.runtimeType) {
    case SetFirstAction:
      return FirstState((action as SetFirstAction).value);
    default:
      return state;
  }
}